package com.neu.credit.creditscore.entity.hospital;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Schema(name = "Prescriptions", description = "处方信息表")
public class Prescriptions {

    @Schema(description = "处方ID，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "预约ID")
    private Integer appointmentId;

    @Schema(description = "医生ID")
    private Integer doctorId;

    @Schema(description = "药品ID")
    private Integer drugId;

    @Schema(description = "用药剂量")
    private String dosage;

    @Schema(description = "用药方式")
    private String usage1;

    @Schema(description = "处方状态（1-有效，0-已取消）")
    private Integer prescriptionStatus;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
    @TableField(exist = false)
    @Schema(description = "药品详细信息")
    private PrescriptionDrugs drugInfo;
}